package com.smedi.ismedi.authoritymanagement.core.domain.repository;

import com.smedi.ismedi.authoritymanagement.core.domain.aggregatemodel.FrameStructure;

import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-7-13 19:42
 */
public interface FrameStructureRepository {
    FrameStructure selectByStructureId(Long structureId);

    FrameStructure doInsert(FrameStructure data);

    FrameStructure doUpdate(FrameStructure data);

    int selectRootCodeCount(String rootCode, Long structureId);

    List<FrameStructure> selectByParentId(Long structureId);

    List<FrameStructure> selectAllChildren();

    void doDelete(Long structureId);

    FrameStructure selectByRootCode(String rootCode);
}
